﻿@model MongoDBSample.Models.DB.Attachment

@{
    ViewBag.Title = "Create Attachment";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Create</h2>

@using (Html.BeginForm("Create", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
{

    <fieldset>
        <legend>Attachment</legend>
        <div>
            Attach a file: 
            <input type='file' name='file' id='file' /> 
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
